package com.umgsai.thread.thread40;

public class ThreadB extends Thread {
	@Override
	synchronized public void run() {
		try {
			System.out.println(Thread.currentThread().getName() + " B begin time = " + System.currentTimeMillis());
			Thread.sleep(5000);
			System.out.println(Thread.currentThread().getName() + " B end time = " + System.currentTimeMillis());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
